package org.tlipoca.smsteamcategory.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.genntii.smdomain.entity.SteamCategory;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface SteamCategoryMapper extends BaseMapper<SteamCategory> {

    @Delete("delete from Steam_Category;")
    void deleteAll();

    void insertBatch(List<SteamCategory> categories);

    @Select("select * from Steam_Category;")
    ArrayList<SteamCategory> selectSteamCategoryList();
}
